package com.zang.blogz.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zang.blogz.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zang.blogz.model.output.CommentVO;
import com.zang.blogz.model.output.admin.AdminCommentVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 朵橙i
 * @since 2022-06-17
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    List<CommentVO> getCommentByArticleId(Integer articleId);

    IPage<AdminCommentVO> didNotPass(Page<AdminCommentVO> page, String approvalStatus);
}
